package org.hhy.cloud.crawl.dto;

import lombok.Data;
import org.hhy.cloud.crawl.entity.JobMonitor;
import org.hhy.cloud.crawl.monitor.CustomSpiderStatusMXBean;

import java.util.concurrent.ConcurrentHashMap;

/**
 * Description:爬虫监控窗台dto
 *
 * @Author lht
 * @Date 2020/11/7 8:59 PM
 **/
@Data
public class CustomSpiderStatusEventDto {

    private String id;

    private ConcurrentHashMap<String, CustomSpiderStatusMXBean> concurrentHashMap;

    private JobMonitor jobMonitor;

    public CustomSpiderStatusEventDto(String id, ConcurrentHashMap<String, CustomSpiderStatusMXBean> map, JobMonitor jobMonitor) {
        this.id = id;
        this.concurrentHashMap = map;
        this.jobMonitor = jobMonitor;
    }
}
